package com.sharelords.demo.biz.param;

import com.sharelords.biz.annotation.param.Prop;
import com.sharelords.biz.annotation.skip.BlankSkip;
import com.sharelords.biz.annotation.skip.NullSkip;
import com.sharelords.biz.annotation.value.GtEqual;
import com.sharelords.biz.annotation.value.Like;
import com.sharelords.biz.annotation.value.LtEqual;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 条件
 * @Author: 千古龙少
 * @Time: 2019/11/25 23:00
 */
public class ConditionParamBo implements Serializable {

    private static final long serialVersionUID = -4242272270046782544L;

    /**
     * id
     */
    @NullSkip
    private Long id;
    /**
     * 姓名
     */
    @BlankSkip
    @Like
    private String name;
    /**
     * 开始时间
     */
    @Prop("createTime")
    @GtEqual
    @NullSkip
    private Date startTime;
    /**
     * 结束时间
     */
    @Prop("createTime")
    @LtEqual
    @NullSkip
    private Date endTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
